
enum SIZE {
    //% block="29*29"
    1,
    //% block="58*58"
    2
}

enum LINE {
    //% block="1"
    1,
    //% block="2"
    2,
    //% block="3"
    3,
    //% block="4"
    4
}

enum BTN {
    //% block="A"
    A,
    //% block="B"
    B,
    //% block="A+B"
    AB
}


//% color="#44AA00" iconWidth=50 iconHeight=55
namespace FSTOF {
    //% block="gettof [X]" blockType="reporter"
    //% X.shadow="dropdown" X.options="X" 
    export function GETTOF(parameter: any, block: any) 
    {
        let p = parameter.X.code;
        //Generator.addInclude('Mylibraray_rmtt', '#include <RMTT_Libs.h>');
       // Generator.addInclude('Mylibraray_wire', '#include <Wire.h>');
        Generator.addInclude('Mylibraray_FSTOF', '#include <FSTOF.h>');

        Generator.addSetup(`Mysteupdl`, `Wire.begin(27, 26);`);
        Generator.addCode([`getTOF(${p})`, Generator.ORDER_UNARY_POSTFIX]);


    }

   
}
